<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板语法</title>
    <script src="js/vue.js"></script>
</head>
<body>
<div id="root">
    <h1>插值语法</h1>
    <h3>你好，{{name}}</h3>
    <a v-bind:href="url">点击去百度</a>
    <!--v-bind可以省略-->
    <a :href="school.url.toLowerCase()">点击去{{school.name}}</a>
    <hr/>
</div>
<script>
    // 关闭启动时的生产提示
    Vue.config.productionTip = false;
    new Vue({
        el: '#root',
        data: {
            name: 'jack',
            school: {
                name: '百度',
                url: 'https://www.baidu.com/'
            }
        }
    });
</script>
</body>
</html>